package config

import "gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/schema"

const CONFIG_TYPE_LOG_TB = "config_inout_type_log"

type ConfigInoutTypeLog struct {
	schema.Model
	Id         int64  `gorm:"column:id;type:bigint(20);primary_key;AUTO_INCREMENT" json:"id"`
	ConfigId   int64  `gorm:"column:config_id;type:bigint(20);default:0;comment:配置id;NOT NULL" json:"config_id"`
	OldValue   string `gorm:"column:old_value;type:text;comment:修改之前的值" json:"old_value"`
	NewValue   string `gorm:"column:new_value;type:text;comment:新值" json:"new_value"`
	Ip         string `gorm:"column:ip;type:varchar(60);comment:客户端ip" json:"ip"`
	IpPlace    string `gorm:"column:ip_place;type:varchar(100);comment:ip所在地;NOT NULL" json:"ip_place"`
	CreatedUid int64  `gorm:"column:created_uid;type:bigint(20);default:0;comment:创建人" json:"created_uid"`
}

func (m *ConfigInoutTypeLog) TableName() string {
	return CONFIG_TYPE_LOG_TB
}
